package main

import "fmt"

func main() {
	var a [2] int
	var b [2] int
	b = a
	fmt.Println(b)

	c := [2]int{1}
	fmt.Println(c)

	d := [20]int{19: 1}
	fmt.Println(d)

	e := [...]int{1, 2, 2, 3, 4}
	fmt.Println(e)

	f := [...]int{1: 1, 5: 5}
	var p *[6] int = &f
	fmt.Println(f)
	fmt.Println(p)

	aa := [2]int{1, 2}
	bb := [2]int{1, 2}
	fmt.Println(aa == bb)

	pp := new([10]int)
	pp[2] = 2
	fmt.Println(pp)

	aaa := [2][3]int{
		{1, 1, 1},
		{2, 2, 2}}
	fmt.Println(aaa)

	b3 :=[2][3]int{
		{1:1},
		{2:2}}
	fmt.Println(b3)

	a1:=[...]int{4,5,2,7,8}
	fmt.Println(a1)
	num := len(a1)
	for i:=0; i<num; i++{
		for j:=i+1;j<num;j++{
			if a1[i]>a1[j]{
				tmp := a1[i]
				a1[i] = a1[j]
				a1[j] = tmp
			}
		}
	}
	fmt.Println(a1)
}
